Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

343
Visualizações
How can solve this error "Uncaught TypeError: inputArgs[0].match is not a function"

When login first then immediatly show:- "Uncaught TypeError: inputArgs[0].match is not a function" this error .

I'm using react-firebase-auth hook. when I try loging it login successfully . my code like as=

import useSignInWithGoogle form react-firebase-hooks
const [signInWithGoogle, user, loading, error] =useSignInWithGoogle(auth);
if (user) {console.log(user)} 

it show first 2 result like -UserCredentialImpl and then show:

Uncaught TypeError: inputArgs[0].match is not a function

and the again show UserCredentialImpl and again:

Uncaught TypeError: inputArgs[0].match is not a function

about 4 years ago · Juan Pablo Isaza
3 Respostas
Responde à pergunta

0

I'm also getting the same error! today. Alternatively, you can try a different browser like Mozila / Safari / Brave. Or you can use console.dir() instead of console.log(). Or you can you add a string before log like: console.log("data", user)

about 4 years ago · Juan Pablo Isaza Relatório

0

i think you guys using react 18

use useEffect to console the user from useState

useEffect(()=>{

if (user) {console.log(user)} },[])

100% will work,or else let me know i will suggest you one more method

about 4 years ago · Juan Pablo Isaza Relatório

0

1.npm -g firebase-tools and npm firebase-tools or yarn add firebase-tools 2.do not console.log() directly to authState(auth) or useAuthState (auth) user

3.try to put it on condition

  const [signInWithGoogle, googleuser, googleloading, googleerror] =
useSignInWithGoogle(auth) if (googleuser) {
console.log(googleuser)};

or console.dir() instead of console.log()

about 4 years ago · Juan Pablo Isaza Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda